package com.tea.Model.dto;

import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.util.ArrayList;

@Data
public class CartAddDTO {
    @NotNull(message = "商品ID不能为空")
    private Long goodsId;
    private ArrayList<Long> ids;

    @NotNull(message = "规格ID不能为空")
    private Long specId;
    
    @Min(value = 1, message = "数量不能小于1")
    private Integer quantity;
}